
export const asyncRouterMap = [

  {
    path: '/',
    name: 'index',
    meta: { title: '首页管理' },
    children: [
      // 首页
      // {
      //   path: '/',
      //   name: 'index',
      //   meta: { title: '首页', icon: 'home' }
      // },
      // 工资管理
      {
        name: 'salary',
        path: '/salary',
        redirect: '/salary/SalaryIndex',
        meta: { title: '工资管理', icon: 'money-collect' },
        children: [
          { path: '/salary/SalaryIndex', name: 'plan', meta: { title: '工资列表' }},
          { path: '/salary/SalaryApprovalIndex', name: 'apply', meta: { title: '财务审核' }}
        ]
      },
      // 部门核算
      {
        name: 'rating',
        path: '/rating',
        redirect: '/rating/RatingIndex',
        meta: { title: '部门核算', icon: 'profile' },
        children: [
          { path: '/rating/RatingIndex', name: 'plan', meta: { title: '工作考核' }},
          { path: '/rating/RentIndex', name: 'apply', meta: { title: '水电管理' }}
        ]
      },
      // 资产管理
      {
        name: 'property',
        path: '/property',
        redirect: '/property/plan',
        meta: { title: '资产管理', icon: 'dashboard' },
        children: [
          { path: '/property/plan', name: 'plan', meta: { title: '资产盘点计划' }},
          { path: '/property/apply', name: 'apply', meta: { title: '申请管理' }},
          { path: '/property/warehouse', name: 'warehouse', meta: { title: '出入库管理' }},
          { path: '/property/item', name: 'item', meta: { title: '物品管理' }}
        ]
      },
      // 餐券统计
      {
        name: 'meal',
        path: '/meal',
        redirect: '/meal/manage',
        meta: { title: '餐券管理', icon: 'form' },
        children: [
          { path: '/meal/manage', name: 'manage', meta: { title: '餐券管理' }},
          { path: '/meal/pay', name: 'pay', meta: { title: '支付流水' }},
          { path: '/meal/date', name: 'date', meta: { title: '订餐日期设置' }},
          { path: '/meal/change', name: 'change', meta: { title: '换餐记录' }}
        ]
      },
      // 考勤管理
      {
        name: 'attendance',
        path: '/attendance',
        redirect: '/attendance/AttendanceIndex',
        meta: { title: '考勤管理', icon: 'reconciliation' },
        children: [
          { path: '/attendance/AttendanceIndex', name: 'plan', meta: { title: '出勤记录' }},
          { path: '/attendance/AttendanceSettingIndex', name: 'apply', meta: { title: '考勤设置' }}
        ]
      },
      // 请假管理
      {
        name: 'leave',
        path: '/leave',
        redirect: '/leave/LeaveIndex',
        meta: { title: '请假管理', icon: 'exception' },
        children: [
          { path: '/leave/LeaveIndex', meta: { title: '请假记录' }},
          { path: '/leave/LeaveTypeIndex', meta: { title: '请假配置' }}
        ]
      },
      // 排课管理
      {
        name: 'timetable',
        path: '/timetable',
        redirect: '/timetable/TimetableIndex',
        meta: { title: '排课管理', icon: 'project' },
        children: [
          { path: '/timetable/TimetableIndex', name: 'plan', meta: { title: '排课中心' }},
          { path: '/timetable/TimetableReportIndex', name: 'plan', meta: { title: '课时统计' }},
          { path: '/timetable/TimetableExchangeIndex', name: 'apply', meta: { title: '代课管理' }}
        ]
      },
      // 学生征信
      {
        path: '/blacklist',
        name: 'blacklist',
        redirect: '/blacklist/BlacklistIndex',
        meta: { title: '学生征信 ', icon: 'eye' },
        children: [
          {
            path: '/blacklist/BlacklistIndex',
            name: 'BlacklistIndex',
            meta: { title: '学生征信', icon: 'solution' }
          }
        ]
      },
      // 员工管理
      {
        path: '/staff',
        name: 'staff',
        redirect: '/staff/StaffIndex',
        meta: { title: '组织架构 ', icon: 'cluster' },
        children: [
          {
            path: '/staff/StaffIndex',
            name: 'StaffIndex',
            meta: { title: '员工管理', icon: 'team' }
          }
        ]
      },
      // 系统管理
      {
        path: '/manager',
        name: 'manager',
        redirect: '/manager/roleList',
        meta: { title: '系统管理', icon: 'radar-chart' },
        children: [
          // {
          //   path: '/manager/roleList',
          //   name: 'roleList',
          //   meta: { title: '角色管理', icon: 'role' }
          // },
          {
            path: '/manager/userList',
            name: 'userList',
            meta: { title: '用户管理', icon: 'user' }
          },
          // {
          //   path: '/manager/permissionList',
          //   name: 'permissionList',
          //   meta: { title: '权限管理', icon: 'safety' }
          // },
          {
            path: '/manager/editAccountPwd',
            name: 'editAccountPwd',
            meta: { title: '重置密码', icon: 'lock' }
          },
          // {
          //   path: '/manager/assignPermission',
          //   name: 'assignPermission',
          //   meta: { title: '分配权限', icon: 'inbox' }
          // },
          {
            path: '/manager/departList',
            meta: { title: '部门管理', icon: 'eye' }
          }
          // ,
          // {
          //   path: '/manager/departUserList',
          //   meta: { title: '用户分配', icon: 'eye' }
          // }
          // {
          //   path: '/system/menu/MenuList',
          //   meta: { title: '菜单管理', icon: 'book', permission: ['dev:menu'] }
          // },
        ]
      }
    ]
  },
  {
    path: '*', redirect: '/404', hidden: true
  }
]

/**
 * 基础路由
 * @type { *[] }
 */
export const constantRouterMap = [
  {
    path: '/users',
    redirect: '/users/login',
    hidden: true,
    children: [
      {
        path: '/users/login',
        name: 'login'
      }
    ]
  },
  {
    path: '/404'
  }
]
